package com.example.recyclerviewdemo.tree

import com.chad.library.adapter.base.entity.node.BaseExpandNode
import com.chad.library.adapter.base.entity.node.BaseNode

data class TreeNodeData(
    val label: String?, //标题，显示的文字
    val value: String?, //属性内容
    val level: Int,     //层级
    val children: MutableList<BaseNode>? //子节点
): BaseExpandNode() {
    override val childNode = children

    init {
        isExpanded = false
    }
}